package yto.net.integrateddata.config;

import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;


public class ApplicationInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {

    @Override  //获取Spring应用容器的配置文件
    protected Class<?>[] getRootConfigClasses() {
        return new Class<?>[]{RootConfig.class};
    }

    @Override  //获取Spring MVC应用容器
    protected Class<?>[] getServletConfigClasses() {
        return new Class<?>[]{WebConfig.class};
    }

    @Override  //指定需要由DispatcherServlet映射的路径，这里给定的是"/"
    protected String[] getServletMappings() {
        return new String[]{"/"};
    }

}
